<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="agendaList.title" /></title>
<content tag="heading">
<fmt:message key="agendaList.heading" />
</content>

<c:set var="buttons">
	<input type="button" style="margin-right: 5px"
		onclick="location.href='<c:url value="/editAgenda.html"/>'"
		value="<fmt:message key="button.add"/>" />

	<input type="button"
		onclick="location.href='<c:url value="/mainMenu.html"/>'"
		value="<fmt:message key="button.done"/>" />
</c:set>

<c:out value="${buttons}" escapeXml="false" />


<display:table name="agendaList" cellspacing="0" cellpadding="0"
	requestURI="" id="agendaList" pagesize="25" class="table speechList"
	export="true">

	<display:column escapeXml="true" sortable="true"
		url="/agendaDetail.html" paramId="id" paramProperty="id"
		titleKey="agenda.date">
		<fmt:formatDate value="${agendaList.date}" pattern="MM/dd/yyyy" />
	</display:column>
	<display:column property="toastMaster" escapeXml="true" sortable="true"
		titleKey="agenda.toastMaster" />
	<display:column property="theme" escapeXml="true" sortable="true"
		titleKey="agenda.theme" />
	<display:column property="phrase.phrase" escapeXml="true"
		sortable="true" titleKey="agenda.phrase" />

	<display:setProperty name="paging.banner.item_name" value="agenda" />
	<display:setProperty name="paging.banner.items_name" value="agendas" />
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
	highlightTableRows("agendaList");
</script>
